package com.study.talk.netty.message.response;

import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

/**
 * 同意成员入群消息响应
 */



public class AcceptJoinGroupResponse extends TalkMessage {

    //("群聊id")
    private Integer groupId;

    //("群聊名称")
    private String groupName;

    //("是否同意")
    private Boolean success;

    @Override
    public byte getType() {
        return MessageType.ACCEPT_JOIN_GROUP_RESPONSE;
    }


    public AcceptJoinGroupResponse(Integer groupId,String groupName, Boolean success) {
        this.groupId = groupId;
        this.groupName = groupName;
        this.success = success;
    }

    public AcceptJoinGroupResponse() {
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }
}
